// ++++++++++++++++++++++++++++++++++++++++
// 《零基础Go语言算法实战》源码
// ++++++++++++++++++++++++++++++++++++++++
// Author:廖显东（ShirDon）
// Blog:https://www.shirdon.com/
// Gitee:https://gitee.com/shirdonl/goAlgorithms.git
// Buy link :https://item.jd.com/14101229.html
// ++++++++++++++++++++++++++++++++++++++++

package main

import "fmt"

func main() {
	//isMatch := func(i int) bool {
	//	switch i {
	//	case 1:
	//	case 2:
	//		return true
	//	}
	//	return false
	//}

	//isMatch := func(i int) bool {
	//	switch i {
	//	case 1:
	//		fallthrough
	//	case 2:
	//		return true
	//	}
	//	return false
	//}

	isMatch := func(i int) bool {
		switch i {
		case 1, 2:
			return true
		}
		return false
	}
	fmt.Println(isMatch(1))
	fmt.Println(isMatch(2))
}

//$ go run interview1-47.go
//false
//true
